package com.example.siyun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:登录拦截路径以及登录成功后的跳转路径
 */
@Controller
public class LoginController {
    @RequestMapping("/hello")
    public String hello(Model model){
        return "login";
    }
    @RequestMapping("/tologin")
    public String helloo(){
        return "redirect:pages/index.html";
    }
}
